<div class="nav pull-right">
	<form class="navbar-search" action="">
		<input class="search-query span2" type="text" placeholder="Search">
	</form>
	<li class="divider-vertical"></li>
        <?php if(isset($username)){ ?>         
                <div class="btn-group">
                <a class="btn dropdown-toggle" href="#" data-toggle="dropdown">
                    <i class="icon-user"></i>
                <?php echo $username; ?>
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li>
                        <a href="<?php echo  base_url()."customer"?>">ข้อมูลผู้ใช้งาน</a>
			<a href="<?php echo  base_url()."auth/logout"?>">ออกจากระบบ</a>
                    </li>
		</ul>
                </div>
        <?php }else{ ?>  
	<a class="btn btn-primary" href="<?php echo  base_url()."auth/login"?>">เข้าสู่ระบบ</a>
	<a class="btn btn-success" href="<?php echo  base_url()."auth/register"?>">สมัครสมาชิก</a>
        <?php } ?>	
	
</div>
<ul class="nav" >
	<li class=" active"><a class="<?php echo isActive($pageName,"home")?>" href="<?php echo  base_url()?>">Home</a></li>
	<li><a class="<?php echo isActive($pageName,"login")?>" href="<?php echo  base_url()?>">Link</a></li>
	<li><a class="<?php echo isActive($pageName,"about")?>" href="<?php echo  base_url()?>">Link</a></li>
	<li><a class="<?php echo isActive($pageName,"about")?>" href="<?php echo  base_url()?>">Link</a></li>
	<li><a class="<?php echo isActive($pageName,"about")?>" href="<?php echo  base_url()?>">Link</a></li>
	<li><a class="<?php echo isActive($pageName,"about")?>" href="<?php echo  base_url()?>">Link</a></li>
</ul>